from PyQt4 import QtGui, QtCore


def login():
    return True



if __name__ == '__main__':
    import sys
    app = QtGui.QApplication(sys.argv)
    if login():
        win = QtGui.QMainWindow()
        win.show()
        sys.exit(app.exec_())